package com.xish.spring.exception;


public class Common200Exception extends RuntimeException {

    // 返回的HTTP状态码始终是200
    protected int httpStatusCode = 200;

    private String message;

    public Common200Exception(String message) {
        this.message = message;
    }

    public int getHttpStatusCode() {
        return httpStatusCode;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
